package com.wht.media.model.param;

import lombok.Data;
import org.noear.solon.validation.annotation.NotBlank;
import org.noear.solon.validation.annotation.NotNull;

import java.io.Serializable;

/**
 * 录像状态
 *
 * @author lidaofu
 * @since 2023/3/30
 **/
@Data
public class RecordStatusParam implements Serializable {

    private static final long serialVersionUID = 1;

    /**
     * 应用名称
     */
    @NotBlank(message = "app不为空")
    private String app;

    /**
     * 流ID
     */
    @NotBlank(message = "流id不为空")
    private String stream;

    /**
     * 录像类型，0为hls，1为mp4,2:hls-fmp4,3:http-fmp4,4:http-ts 当0时需要开启配置分片持久化
     */
    @NotNull(message = "录像类型不为空")
    private Integer type;

}
